// 物业信息
import request from "@/utils/request";
export default {
  // 获取物业信息
  realList(page, size) {
    return request({
      url: "/real/list",
      method: "post",
      data: {
        page,
        size,
      },
    });
  },
  // 添加物业信息
  realAdd(name, menus, auth_name, administer) {
    return request({
      url: "/real/add",
      method: "post",
      data: {
        name,
        menus,
        auth_name,
        administer,
      },
    });
  },
  // 更新物业
  updatereal(real) {
    return request({
      url: "/real/update",
      method: "post",
      data: real,
    });
  },
  // 删除物业信息
  realDelete(row) {
    return request({
      url: "/real/delete",
      method: "delete",
      data: row,
    });
  },
};
